import yagmail
import logging

def duqu(file):
    with open(file,newline='',encoding='utf-8') as a:
        return [row for row in a]
def log_set():
    logging.basicConfig(level=logging.DEBUG, format='%(message)s', filename='log.txt', filemode='w')

def sent(file):
    em=yagmail.SMTP(user='',password='',host='smtp.qq.com')
    em.send(to='',subject='',contents='',attachments=file)